Skip to content

feat(analytics): expose serverURL in Mixpanel.init()#245

Merged
tylerjroach merged 3 commits into
mixpanel:mainfrom
Stokkur-Software:feat/expose-server-url-in-init
Jun 3, 2026
Merged

feat(analytics): expose serverURL in Mixpanel.init()#245
tylerjroach merged 3 commits into
mixpanel:mainfrom
Stokkur-Software:feat/expose-server-url-in-init

Conversation

@dt-stokkur
Copy link
Copy Markdown
Contributor

Adds an optional serverURL named parameter on Mixpanel.init() and forwards it to the native iOS, Android, macOS, and web SDKs at initialization time. Lets callers pin a proxy host or the EU endpoint without making a separate setServerURL call after init.

Adds an optional serverURL named parameter on Mixpanel.init() and
forwards it to the native iOS, Android, macOS, and web SDKs at
initialization time. Lets callers pin a proxy host or the EU endpoint
without making a separate setServerURL call after init.
@dt-stokkur dt-stokkur requested review from a team and jakewski May 27, 2026 17:25
@tylerjroach
Copy link
Copy Markdown
Contributor

Hi @lifeofnicolas Thanks for the PR. Will be taking a look.

Copy link
Copy Markdown
Contributor

@tylerjroach tylerjroach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add an explicit null test. Other than that, the PR looks good! Lets get this up to date with the main branch and we can merge this in.

Comment thread packages/mixpanel_flutter/swift/Classes/SwiftMixpanelFlutterPlugin.swift Outdated
@dt-stokkur
Copy link
Copy Markdown
Contributor Author

Can you add an explicit null test. Other than that, the PR looks good! Lets get this up to date with the main branch and we can merge this in.

Hi, added a new test for null value and synced with the latest main. Thanks for your review 👍

@dt-stokkur dt-stokkur requested a review from tylerjroach June 2, 2026 06:25
@tylerjroach tylerjroach merged commit 3c28e54 into mixpanel:main Jun 3, 2026
5 checks passed
tylerjroach added a commit that referenced this pull request Jun 3, 2026
Resolves conflicts after #245 landed on main. Keeps only this branch's
additions over #245:
- README docs for Custom Proxy / Data Residency
- Whitespace-trimming in the Android and iOS empty-checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants